package com.googlecode.simpleqms

import grails.converters.JSON

class DivisionController {
    def DivisionService

    def getList = {
        render DivisionService.getList() as JSON
    }

    def getElement = {
        render DivisionService.getElement(params) as JSON
    }

    def addElement = {
        render DivisionService.addElement(params) as JSON
    }

    def modElement = {
        render DivisionService.modElement(params) as JSON
    }

    def delElement = {
        render DivisionService.delElement(params) as JSON
    }
}